<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model common\modules\user\backend\models\LoginForm */

$this->title = Yii::t('backend', 'Sign In');
$this->params['breadcrumbs'][] = $this->title;
$this->params['body-class'] = 'login-page';
?>
<div class="login-box">
	<div class="login-logo">
        <?= Html::encode($this->title)?>
    </div>
	<!-- /.login-logo -->
	<div class="header"></div>
	<div class="login-box-body">
        <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
        <div class="body">
            <?= $form->field($model, 'username')?>
            <?= $form->field($model, 'password')->passwordInput()?>
            <?= $form->field($model, 'rememberMe')->checkbox(['class'=>'simple'])?>
        </div>
		<div class="footer">
            <?= Html::submitButton('登录', [
                'class' => 'btn btn-primary btn-flat btn-block',
                'name' => 'login-button'
            ])?>
        </div>
        <?php ActiveForm::end(); ?>
    </div>

</div>